<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>my-cart</title>
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/cart.css">
</head>

<body>

  <div class="lt_container">
    <!-- 头部 -->
    <div class="lt_header">
      <div class="icon_left">
        <a href="index.html" class="fa fa-home"></a>
      </div>
      <h4>购物车</h4>
    </div>
    <!-- 内容 -->
    <div class="lt_main">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <ul id="OA_task_2" class="mui-table-view">
             
          </ul>
        </div>
      </div>
    </div>
    <div class="lt_total">
        <div class="mui-pull-left">订单总金额 &yen;<span class="total">00.00</span></div>
        <a href="javascript:;" class="mui-pull-right btn_order">生成订单</a>
    </div>
    <!-- 底部 -->
    <div class="lt_footer">
      <ul class="mui-clearfix">
        <li>
          <a href="index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
          </a>
        </li>
        <li>
          <a href="category.html">
            <span class="fa fa-bars"></span>
            <p>分类</p>
          </a>
        </li>
        <li class="now">
          <a href="cart.html">
            <span class="fa fa-shopping-cart"></span>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <span class="fa fa-user"></span>
            <p>个人中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>

  <script type="text/template" id="tmp">
    {{each list v i}}
    <li class="mui-table-view-cell">
        <div class="mui-slider-right mui-disabled">
          <a data-id = "{{v.id}}" data-num = "{{v.num}}" data-size = "{{v.size}}" data-product-size = "{{v.productSize}}" class="mui-btn mui-btn-primary mui-icon mui-icon-compose btn_edit"></a>
          <a data-id = "{{v.id}}" class="mui-btn mui-btn-danger mui-icon mui-icon-trash btn_delete"></a>
        </div>
        <div class="mui-slider-handle">
          <div class="mui-table-cell">
            <input type="checkbox" class="ck" data-num="{{v.num}}" data-price="{{v.price}}" >
            <div class="mui-pull-left img_box">
              <img src="{{v.pic[0].picAddr}}" alt="">
            </div>
  
            <div class="info_box">
              <p class="proName mui-ellipsis-2">{{v.proName}}</p>
              <p>
                <span class="price">&yen;{{v.price}}</span>
                <span class="oldPrice">&yen;{{v.oldPrice}}</span>
                <span class="num">{{v.num}}双</span>
              </p>
              <p class="size">鞋码：{{v.size}}</p>
            </div>
          </div>
        </div>
    </li>
    {{/each}}
  </script>

  <script type="text/template" id="tmp1">
    <!-- 尺码 -->
    <div class="pro_size">
      尺码:
      <% var variate = productSize.split("-");
          for(var i= +variate[0];i< +variate[1];i++){ %>
       <span class="{{+size === i ? 'active': ''}}"><%= i %></span> 
       <% } %>
    </div>
  <!-- 数量 -->
  <div class="pro_num">
    数量:
    <div class="mui-numbox" data-numbox-step='10' data-numbox-min='0' data-numbox-max='{{num}}'>
      <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
      <input class="mui-numbox-input" type="number" value = "1" />
      <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
    </div>
    <span>剩余数量:{{num}}双</span>
  </div>
  </script>

  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/cart.js"></script>
  <script>



  </script>
</body>

</html>